package cn.iocoder.yudao.module.reading.dal.dataobject.plan;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 计划每日任务 DO
 *
 * @author 芋道源码
 */
@TableName("plan_daily_tasks")
@KeySequence("plan_daily_tasks_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PlanDailyTaskDO extends BaseDO {

    /**
     * 任务ID
     */
    @TableId
    private Long id;
    /**
     * 计划ID
     */
    private Long planId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 任务日期
     */
    private LocalDate taskDate;
    /**
     * 计划第几天
     */
    private Integer dayNumber;
    /**
     * 任务类型：new_learning-新学习，review-复习
     */
    private String taskType;
    /**
     * 绘本ID
     */
    private Long bookId;
    /**
     * 绘本集ID
     */
    private Long bookSetId;
    /**
     * 当日任务排序
     */
    private Integer sortOrder;
    /**
     * 是否完成
     */
    private Boolean isCompleted;
    /**
     * 完成时间
     */
    private LocalDateTime completedAt;

}
